<?php         
    error_reporting(E_ALL);        
    
    require_once 'config.php';
    
    if(!is_dir($system_dir))
    {
        echo "System directory is not exist !!";
    }
    else
    {
        define('SYSTEM_PATH', str_replace('\\', '/', realpath($system_dir)) . '/');        
    }
    if(!is_dir($application_dir))
    {
        echo "Application directory is not exist !!";
    }
    else
    {
        define('APP_PATH', str_replace('\\', '/', realpath($application_dir)) . '/');        
    }
    
    define('DS','/');

    //load bootstrap file
    require_once(SYSTEM_PATH . 'core' . DS . 'bootstrap.php');
?>